{% extends 'base.html' %}
{% load static %}
{% load mytags %}

{% block title %}
    <title>归档</title>
{% endblock %}
{% block css %}
     <style>
            .content{
                 min-height: calc(100vh - 70px);
            }
            .footer {
                 height: 330px;
            }
        </style>
{% endblock %}

{% block content %}
    <!--中间内容-->
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <!--header-->
            <div class="ui top attached padded segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <h3 class="ui teal header">归档</h3>
                    </div>
                    <div class="right aligned column">
                        共 <h2 class="ui orange header m-inline-block m-text-thin"> {% count_blog %} </h2> 篇博客
                    </div>
                </div>
            </div>
            {% show_archives %}
        </div>
        {% include 'page.html' %}
    </div>
    <br>
    <br>
{% endblock %}

{% block javascript %}
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
    <script>
        $('.menu.toggle').click(function () {
            $('.m-item').toggleClass('m-mobile-hide');
        });
    </script>
{% endblock %}
